package com.tudouji.project.customer.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tudouji.project.customer.mapper.CustomerdepartgroupMapper;
import com.tudouji.project.customer.domain.Customerdepartgroup;
import com.tudouji.project.customer.service.ICustomerdepartgroupService;

/**
 * 部门客户关联Service业务层处理
 * 
 * @author tudouji
 * @date 2022-05-18
 */
@Service
public class CustomerdepartgroupServiceImpl implements ICustomerdepartgroupService 
{
    @Autowired
    private CustomerdepartgroupMapper customerdepartgroupMapper;

    /**
     * 查询部门客户关联
     * 
     * @param guid 部门客户关联ID
     * @return 部门客户关联
     */
    @Override
    public Customerdepartgroup selectCustomerdepartgroupById(String guid)
    {
        return customerdepartgroupMapper.selectCustomerdepartgroupById(guid);
    }

    /**
     * 查询部门客户关联列表
     * 
     * @param customerdepartgroup 部门客户关联
     * @return 部门客户关联
     */
    @Override
    public List<Customerdepartgroup> selectCustomerdepartgroupList(Customerdepartgroup customerdepartgroup)
    {
        return customerdepartgroupMapper.selectCustomerdepartgroupList(customerdepartgroup);
    }

    /**
     * 新增部门客户关联
     * 
     * @param customerdepartgroup 部门客户关联
     * @return 结果
     */
    @Override
    public int insertCustomerdepartgroup(Customerdepartgroup customerdepartgroup)
    {
        return customerdepartgroupMapper.insertCustomerdepartgroup(customerdepartgroup);
    }

    /**
     * 修改部门客户关联
     * 
     * @param customerdepartgroup 部门客户关联
     * @return 结果
     */
    @Override
    public int updateCustomerdepartgroup(Customerdepartgroup customerdepartgroup)
    {
        return customerdepartgroupMapper.updateCustomerdepartgroup(customerdepartgroup);
    }

    /**
     * 批量删除部门客户关联
     * 
     * @param guids 需要删除的部门客户关联ID
     * @return 结果
     */
    @Override
    public int deleteCustomerdepartgroupByIds(String[] guids)
    {
        return customerdepartgroupMapper.deleteCustomerdepartgroupByIds(guids);
    }

    /**
     * 删除部门客户关联信息
     * 
     * @param guid 部门客户关联ID
     * @return 结果
     */
    @Override
    public int deleteCustomerdepartgroupById(String guid){
        return customerdepartgroupMapper.deleteCustomerdepartgroupById(guid);
    }
}
